const Router = require('koa-router');
const router = new Router();
const { index, upload, get_banners, delete_banner, create_banner, hotkey, testMessage } = require('../controllers/home');

router.get('/', index);
router.post('/upload', upload);
router.get('/banners', get_banners);
router.delete('/banners/:id', delete_banner)
router.post('/banners', create_banner)
router.get('/hotkeys', hotkey)
router.get('/test_message', testMessage)

module.exports = router;